package com.fanqwz.hexieshe;

import com.fanqwz.hexieshe.dagger.component.ApplicationComponent;
import com.fanqwz.hexieshe.dagger.component.DaggerApplicationComponent;
import com.fanqwz.hexieshe.dagger.module.ApplicationModule;

/**
 * Created by fanqw on 2017/6/30.
 */

public class Application extends android.app.Application {
    ApplicationComponent applicationComponent;

    @Override
    public void onCreate() {
        super.onCreate();
        applicationComponent = DaggerApplicationComponent.builder()
                .applicationModule(new ApplicationModule(this))
                .build();
    }

    public ApplicationComponent getComponent() {
        return applicationComponent;
    }
}
